<?php
class Mageex_AdvanceSeo_Model_System_Config_Source_NoIndex
{
    protected $_options;

    public function toOptionArray($isMultiselect=false)
    {
        if (!$this->_options) {
            $this->_options = array(
                array('value'=>'^checkout_.+', 					'label'=> Mage::helper('advanceseo')->__('Checkout Pages')),
                array('value'=>'^contacts_.+', 					'label'=> Mage::helper('advanceseo')->__('Contact Us Page')),
                array('value'=>'^customer_.+', 					'label'=> Mage::helper('advanceseo')->__('Customer Account Pages')),
                array('value'=>'^catalog_product_compare_.+', 	'label'=> Mage::helper('advanceseo')->__('Product Compare Pages')),
                array('value'=>'^rss_.+', 						'label'=> Mage::helper('advanceseo')->__('RSS Feeds')),
                array('value'=>'^catalogsearch_.+', 			'label'=> Mage::helper('advanceseo')->__('Search Pages')),
                array('value'=>'.*?_product_send$', 			'label'=> Mage::helper('advanceseo')->__('Send Product Pages')),
                array('value'=>'^tag_.+', 						'label'=> Mage::helper('advanceseo')->__('Tag Pages')),
                array('value'=>'^wishlist_.+', 					'label'=> Mage::helper('advanceseo')->__('Wishlist Pages')),
            );
        }

        $options = $this->_options;
        if(!$isMultiselect){
            array_unshift($options, array('value'=>'', 'label'=> Mage::helper('adminhtml')->__('[-- Please Select --]')));
        }

        return $options;
    }
}